// pages/activityClassDialogue/activityClassDialogue.js
import { shareOptions } from "../../utils/access";
import { setStorage } from "../../utils/utils"
const app = getApp()

Page({

  /**
   * 页面的初始数据
   */
  data: {
  },

  // 去登录
  login() {
    if (!app.isLogin()) {
      setStorage('redirectPath', '/pages/userAward/userAward')
      app.login()
    } else {
      wx.redirectTo({
        url: '/pages/userAward/userAward',
      })
    }
  },
  /**
   * 用户点击右上角分享
   */
  onShareAppMessage(e) {
		return shareOptions('default',e)
	},
})